home *** CD-ROM | disk | FTP | other *** search
- #Portions (c) 1995 Microsoft Corporation. All rights reserved.
- # Developed by hip communications inc., http://info.hip.com/info/
-
- #!./perl
-
- # $RCSfile: mkdir.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:06 $
-
- print "1..7\n";
-
- # WYT 1995-05-02 - changed for MS-DOS
- #`rm -rf blurfl`;
- unlink blurfl;
-
- print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
- print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
- print ($! =~ /exist/ ? "ok 3\n" : "not ok 3\n");
-
- # XXX WYT 1995-05-02 '-d' test doesn't work, have to get it fixed.
- print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
-
- print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
- print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
- print ($! =~ /such|exist/ ? "ok 7\n" : "not ok 7\n");
-